import java.awt.Graphics;
import java.awt.Canvas;
import java.awt.Color;

public class Cherry extends Canvas implements Thing {
	
	private int x;
	
	private int y;
		
	public Cherry (int x, int y) {
		this.x = x;
		this.y = y;
	}
		
	@Override
	public void draw(Graphics g) {
	  g.setColor(Color.grey);
	  g.fillRect(x * 50, y * 50, 50, 50);
	  g.setColor(Color.red);
	  g.fillOval(x * 50 + 5, y * 50 + 25, 15, 15);
	  g.fillOval(x * 50 + 25, y * 50 + 25, 15, 15);
	  Color clr_green = new Color(0, 120, 0);
	  g.setColor(clr_green);
	  g.drawArc(x * 50 + 7, y * 50 + 10, 40, 110, 90, 45);
	  g.drawArc(x * 50 + 8, y * 50 + 10, 40, 110, 90, 45);
	  g.drawArc(x * 50 + 20, y * 50 -57, 30, 82, -140, 45);
	  g.drawArc(x * 50 + 21, y * 50 -57, 30, 82, -140, 45);		
	}
	
}
